<template>
    <div>
        ???
        <ERecord :enode="testTree" :deep='0'></ERecord>
    </div>
</template>

<script setup lang="ts">
import { Ref, ref } from 'vue';
import { ENode } from './ERoleTress';
import ERecord from './ERecord.vue'

const testTree: Ref<ENode> = ref({
    pos: 1,
    label: '一级 1',
    isRec: true,
    value: '0-0',
    children: [
        {
            pos: 1,
            isRec: true,
            label: '二级 1-1',
            value: '0-0-0',
            children: [
                {
                    pos: 1,
                    isRec: false,
                    label: '三级 1-1-1',
                    value: '0-0-0-1',
                    children: []
                },
                {
                    pos: 2,
                    isRec: false,
                    label: '三级 1-1-2',
                    value: '0-0-0-2',
                    children: []
                },
                {
                    pos: 3,
                    isRec: false,
                    label: '三级 1-1-3',
                    value: '0-0-0-3',
                    children: []
                }
            ]

        },
        {
            pos: 2,
            isRec: false,
            label: '二级 1-2',
            value: '0-0-1',
            children: []
        }
    ]
})
</script>